-- A simple script to save the last file saved to a remote FTP directory.
-- Change all the xxxx's to your own values.
-- In Fetch--Under Customize, Preferences, Misc. "Show Sign-up dialog at startup" should be unchecked.
with timeout of 1000 seconds
try
-- Get location of the last file saved.
tell application "SiteCam.ppc"
set lastFileSaved to last image file of active document
end tell
tell application "Fetch 3.0.3"
make new transfer window at beginning with properties {hostname:"ftp.xxxxxx.com", userid:"xxxxxxUserName", password:"xxxxxxPassword", initial directory:""}
put into transfer window "ftp.xxxxxx.com" item lastFileSaved text format Raw Data binary format Raw Data
close front window saving no -- we avoid any dialogs by adding "saving no"